<div id="order-pay-dialog" class="order-pay-dialog-c" style="width:600px;">
	<h3><span id="order-pay-dialog-close" class="close" onclick="return X.boxClose();">关闭</span></h3>
	<div style="overflow-x:hidden;padding:10px;" id="dialog-order-id" oid="{$order['id']}">
	<table width="96%" align="center" class="coupons-table">
		<tr><td width="80"><b>用户信息：</b></td><td>{$user['username']} / {$user['email']}</td></tr>
		<tr><td><b>项目名称：</b></td><td>{$team['title']}</td></tr>
		<tr><td><b>购买数量：</b></td><td>{$order['quantity']}</td></tr>
	<!--{if $order['condbuy']}-->
		<tr><td><b>购买选项：</b></td><td>{$order['condbuy']}</td></tr>
	<!--{/if}-->
		<tr><td><b>付款状态：</b></td><td>{$paystate[$order['state']]}</td></tr>
		<tr><td><b>交易单号：</b></td><td>{$order['pay_id']}</td></tr>
		<tr><td><b>支付序号：</b></td><td>{$order['buy_id']}</td></tr>
		<tr><td><b>付款明细：</b></td><td><!--{if $order['credit']}-->余额支付 <b>${moneyit($order['credit'])}</b> 元<!--{/if}-->&nbsp;<!--{if $order['service']!='credit'&&$order['money']}-->{$payservice[$order['service']]}支付 <b>${moneyit($order['money'])}</b> 元<!--{/if}--><!--{if $order['card_id']}-->&nbsp;代金券：<b>${moneyit($order['card'])}</b> 元<!--{/if}--></td></tr>
		<tr><td><b>订购时间：</b></td><td>${date('Y-m-d H:i', $order['create_time'])} / ${date('Y-m-d H:i', $order['pay_time'])}</td></tr>
		<tr><td><b>订单来源：</b></td><td>{$order['referer']['referer']}</td></tr>
	
	<!--{if $order['mobile']}-->
		<tr><td><b>联系手机：</b></td><td>{$order['mobile']}</td></tr>
	<!--{/if}-->
	
	<!--{if $user['qq']}-->
		<tr><td><b>QQ：</b></td><td>{$user['qq']}</td></tr>
	<!--{/if}-->
					
						
						
	<!--{if $order['is_pin'] == 1}-->
		<tr><td><b>是否拼团：</b></td><td>是
		<!--{if $order['pin_info']['state'] == 1}-->
		<font color="red">已成团</font>
		<!--{elseif $order['pin_info']['state'] == 0}-->
		未成团，拼团中
		<!--{elseif $order['pin_info']['state'] == 2}-->
		已过期.
		<!--{/if}-->
		</td></tr>
	<!--{else}-->
		<tr><td>是否拼团:</td><td>不是拼团</td></tr>	
	<!--{/if}-->
	
	
	<!--{if $order['state']=='pay' && $order['rstate']=='askrefund'}-->
		<tr><td>退款失败原因:</td><td><font color="red">{$order['rereason']}</td></tr>	
	<!--{/if}-->
	<!--{if $user['msn']}-->
		<tr><td><b>MSN：</b></td><td>{$user['msn']}</td></tr>
	<!--{/if}-->
	<!--{if $order['remark']}-->
		<tr><td width="80"><b>买家留言：</b></td><td>${htmlspecialchars($order['remark'])}</td></tr>
	<!--{/if}-->
	<!--{if $team['delivery']=='coupon'}-->
	<tr><td><b>订单状态：</b></td>
		<td>
		<!--{loop $coupons $index $one}-->
		{$one['id']} &nbsp;&nbsp;<!--{if $one['consume']=='Y'}--><font color="green">已消费</font><!--{else}--><font color="red">未消费</font><!--{/if}-->
		<br />
		<!--{/loop}-->
		</td>
	</tr>
	<!--{/if}-->
	<br />
	    

	<!--{if $team['delivery']=='express'}-->
		<tr><th colspan="2"><hr/></th></td>
		<tr><td width="100"><b>收件人：</b></td><td>{$order['realname']}</td></tr>
		<tr><td><b>手机号码：</b></td><td>{$order['mobile']}</td></tr>
		<tr><td><b>收件邮编：</b></td><td>{$order['zipcode']}</td></tr>
		<tr><td><b>收件地址：</b></td><td>{$order['address']}</td></tr>
		<tr><td><b>收件时间：</b></td><td>{$order['express_xx']}</td></tr>
		<tr><td><b>快递公司id：</b></td><td>{$order['express_id']}</td></tr>
		<tr><td><b>快递公司：</b></td><td>{$order['express_name']}</td></tr>
		<tr><th colspan="2"><hr/></th></td>
		<tr><td><b>快递信息：</b></td><td><select name="express_id" id="order-dialog-select-id">${Utility::Option($option_express, $order['express_id'], '请选择快递')}</select>&nbsp;<input type="text" name="in" id="order-dialog-input-id" value="{$order['express_no']}" style="width:150px;" maxLength="32" />&nbsp;&nbsp;<input type="submit" value="确定" onclick="return X.manage.orderexpress();"/></td></tr>
	<!--{/if}-->

	<!--{if $bonus_order['state']==2}-->
		<tr><th colspan="2"><hr/></th></td>
		<tr><td><b>红包处理：</b></td><td>
		<select name="refund" id="order-dialog-refund-id">
		<option value="credit">手动发放</option>
		</select>
		
		&nbsp;
		<input type="submit" value="确定" onclick="return X.manage.orderbonus();"/></td>
		</tr>
	<!--{/if}-->

	</table>
	</div>
</div>
<script>
var bid = {$id};
X.manage.orderbonus = function() {
	 return !X.get(WEB_ROOT + '/ajax/manage.php?action=bonusrefund&id=' + bid )
};
</script>

